﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ws_appPrivada/msContenido.Master" AutoEventWireup="true" CodeBehind="wDireccion.aspx.cs" Inherits="SRPCENTRIA.ws_appPrivada.wDireccion" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="../Scripts/Validaciones.js" type="text/javascript"></script>
   <form id="frmLista2" name ="frmLista" runat="server">
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
        <td align="center">
        <ul id="lnavegacion" class="navegacion" > 
           <li><asp:ImageButton ID="ImageButton1" runat="server" 
                   ImageUrl="~/images/nbasica.png" Width="100px" onclick="ImageButton1_Click" /></li>
           <li><asp:ImageButton ID="ImageButton2" runat="server" 
                   ImageUrl="~/images/nhdireccion.png" Width="100px" onclick="ImageButton2_Click" /></li>
           <li><asp:ImageButton ID="ImageButton3" runat="server" 
                   ImageUrl="~/images/ncomercial.png" Width="100px" onclick="ImageButton3_Click" /></li>
           <li><asp:ImageButton ID="ImageButton4" runat="server" 
                   ImageUrl="~/images/npersonas.png" Width="100px" onclick="ImageButton4_Click" /></li>
           <li><asp:ImageButton ID="ImageButton6" runat="server" 
                   ImageUrl="~/images/nfinanciera.png" Width="100px" onclick="ImageButton6_Click" /></li>
           <li><asp:ImageButton ID="ImageButton5" runat="server" 
                   ImageUrl="~/images/ntributaria.png" Width="100px" onclick="ImageButton5_Click" /></li>
          </ul>  
        </td>
        </tr>
                <tr>
                    <td bgcolor="#FFFFFF">
                        <h1>
                            Direcciones</h1>
                        <div class="round">
                            <div class="contenido">
                                <p>
                                    Oficina Principal<br /> </p>
                                &nbsp;<table align="center" border="0" cellpadding="2" cellspacing="1" width="95%">
                                    <tr>
                                        <td>
                                            Dirección:</td>
                                        <td align="right" colspan="7">
                                            <asp:TextBox ID="txtPDirec" runat="server" class="formularios" Width="100%" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            País:</td>
                                        <td>
                                            <asp:DropDownList ID="dllPPais" runat="server" class="formularios" 
                                                AutoPostBack="True" onselectedindexchanged="dllPPais_SelectedIndexChanged">
                                                <asp:ListItem>-- Seleccionar --</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td align="right">
                                            Departamento:</td>
                                        <td>
                                            <asp:DropDownList ID="dllPDpto" runat="server" AutoPostBack="True" 
                                                class="formularios" 
                                                onselectedindexchanged="dllPDpto_SelectedIndexChanged" >
                                                <asp:ListItem>-- Seleccionar --</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td align="right">
                                            Provincia:</td>
                                        <td>
                                            <asp:DropDownList ID="dllPProv" runat="server" AutoPostBack="True" 
                                                class="formularios" onselectedindexchanged="dllPProv_SelectedIndexChanged">
                                                <asp:ListItem>-- Seleccionar --</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td align="right">
                                            Distrito:
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="dllPDist" runat="server" class="formularios">
                                                <asp:ListItem>-- Seleccionar --</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Teléfono:</td>
                                        <td>
                                            <asp:TextBox ID="txtPTel" runat="server" class="formularios" onkeypress="return f_SoloNumero(this)" MaxLength="9"></asp:TextBox>                                         

<%--                                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtPTel">
                                            </cc1:FilteredTextBoxExtender>--%>
                                        </td>
                                        <td align="right">
                                            Extensión:</td>
                                        <td>
                                            <asp:TextBox ID="txtExtension" runat="server" class="formularios"></asp:TextBox>
<%--                                        <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtExtension">
                                            </cc1:FilteredTextBoxExtender>--%>
                                        </td>
                                        <td align="right">
                                            Fax:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtPFax" runat="server" class="formularios" onkeypress="f_SoloNumero(this)" ></asp:TextBox>
<%--                                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtPFax">
                                            </cc1:FilteredTextBoxExtender>--%>
                                        </td>
                                        <td align="right">
                                            Extensión :</td>
                                        <td>
                                            <asp:TextBox ID="txtExtension2" runat="server" class="formularios"></asp:TextBox>
<%--                                             <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtExtension2">
                                            </cc1:FilteredTextBoxExtender>--%>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <span class="bottom"></span>
                        </div>
                        <div class="round">
                            <span class="top"></span>
                            <div class="contenido">
                                <p>
                                    Otras direcciones fábrica, oficinas comerciales, almacenes, etc.<br /> </p>
                                    <br />
                                <asp:Label ID="lblError" runat="server" BackColor="#9A5454" BorderStyle="None" 
                                    Font-Strikeout="False" ForeColor="White" Visible="False" Width="100%"></asp:Label>
                                <asp:Panel ID="PanelDirecciones" runat="server" ScrollBars="Horizontal" Height="100%" class="scrolltabla"
                                    Width="1000px">
                                    <asp:GridView ID="GvgSucursal" runat="server" AutoGenerateColumns="False"  CssClass="tablaMain" Width="2200px">
                                        <Columns>
                                            <asp:TemplateField HeaderText="Sucursal">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblSucursal" runat="server" Text='<%# Eval("colSucursal") %>' />                                                                                                    
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgSucursal" runat="server" Width="99%" class="formularios"></asp:TextBox>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Dirección">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblDireccion" runat="server" Text='<%# Eval("colDireccion") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgDireccion" runat="server" Width="99%" class="formularios"></asp:TextBox>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="País">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblPais" runat="server" Text='<%# Eval("colNomPais") %>' />
                                                </ItemTemplate>
<%--                                            <FooterTemplate>                                           
                                            <asp:DropDownList ID="dllGvgPais" runat="server" AutoPostBack="True" onselectedindexchanged="dllGvgPais_SelectedIndexChanged" Width="99%" class="formularios">  </asp:DropDownList>
                                             </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Departamento">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblDepartamento" runat="server" Text='<%# Eval("colNomDpto") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:DropDownList ID="dllGvgDpto" runat="server" AutoPostBack="True" Width="99%" class="formularios" onselectedindexchanged="dllGvgDpto_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Provincia">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblProvincia" runat="server" Text='<%# Eval("colNomProv") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:DropDownList ID="dllGvgProv" runat="server" AutoPostBack="True" Width="99%" class="formularios"
                                                        onselectedindexchanged="dllGvgProv_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Distrito">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblDistrito" runat="server" Text='<%# Eval("colNomDist") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:DropDownList ID="dllGvgDist" runat="server" AutoPostBack="True" Width="99%" class="formularios">
                                                    </asp:DropDownList>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Teléfono">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTelefono" runat="server" Text='<%# Eval("colTelefono") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgTelefono" runat="server" Width="99%" onkeypress="return f_SoloNumero(this)" MaxLength="9" class="formularios"></asp:TextBox>
                                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtGvgTelefono">
                                                    </cc1:FilteredTextBoxExtender>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Extensión">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblExtension" runat="server" Text='<%# Eval("colExtension") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgExtension" runat="server" Width="99%" onkeypress="return f_SoloNumero(this)" MaxLength="9" class="formularios"></asp:TextBox>
                                                  <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtGvgExtension">
                                                    </cc1:FilteredTextBoxExtender>
                                                </FooterTemplate>--%>
                                                <ItemStyle Width="80px" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Fax">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblFax" runat="server" Text='<%# Eval("colFax") %>' />
                                                </ItemTemplate>
 <%--                                               <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgFax" runat="server" Width="99%" onkeypress="return f_SoloNumero(this)" MaxLength="9" class="formularios" ></asp:TextBox>
                                                  <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtGvgFax">
                                                    </cc1:FilteredTextBoxExtender>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Extensión">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblExtension2" runat="server" Text='<%# Eval("colExtension2") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgExtension2" runat="server" Width="99%" onkeypress="return f_SoloNumero(this)" MaxLength="9" class="formularios"></asp:TextBox>
                                       <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" runat="server" 
                                                FilterType="Numbers" TargetControlID="txtGvgExtension2">
                                                    </cc1:FilteredTextBoxExtender>
                                                </FooterTemplate>--%>
                                                <ItemStyle Width="80px" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="E-mail">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblmail" runat="server" Text='<%# Eval("colmail") %>' />
                                                </ItemTemplate>
<%--                                                <FooterTemplate>
                                                    <asp:TextBox ID="txtGvgMail" runat="server" Width="99%" class="formularios"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                                                ControlToValidate="txtGvgMail" Display="Dynamic" 
                                                ErrorMessage="Email no valido" ForeColor="Red" SetFocusOnError="True" 
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                </FooterTemplate>--%>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                    <br />
                                </asp:Panel>
                            </div>
                            <span class="bottom"></span>
                        </div>
                        <p align="center">
                            &nbsp;</p>
                    </td>
                </tr>
            </table>
    </form>
</asp:Content>
